package com.huazhen.itrip.biz.service.tradeends;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huazhen.itrip.beans.pojo.ItripTradeEnds;
import com.huazhen.itrip.dao.tradeends.ItripTradeEndsMapper;
@Service("itripTradeEndsService")
public class ItripTradeEndsServiceImpl implements ItripTradeEndsService {

	@Autowired
	private ItripTradeEndsMapper itripTradeEndsMapper;
	@Override
	public ItripTradeEnds getItripTradeEndsById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripTradeEndsMapper.getItripTradeEndsById(id);
	}

	@Override
	public List<ItripTradeEnds> getItripTradeEndsListByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripTradeEndsMapper.getItripTradeEndsListByMap(param);
	}

	@Override
	public Integer getItripTradeEndsCountByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripTradeEndsMapper.getItripTradeEndsCountByMap(param);
	}

	@Override
	public Integer insertItripTradeEnds(ItripTradeEnds itripTradeEnds) throws Exception {
		// TODO Auto-generated method stub
		return itripTradeEndsMapper.insertItripTradeEnds(itripTradeEnds);
	}

	@Override
	public Integer updateItripTradeEnds(ItripTradeEnds itripTradeEnds) throws Exception {
		// TODO Auto-generated method stub
		return itripTradeEndsMapper.updateItripTradeEnds(itripTradeEnds);
	}

	@Override
	public Integer deleteItripTradeEndsById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripTradeEndsMapper.deleteItripTradeEndsById(id);
	}

}
